<nz-spin [nzSpinning]="isSpinning" [nzTip]="'正在初始化模块信息...'">
  <section>
    <nz-table [nzLoading]="loadingData" [nzFrontPagination]="false" [nzTotal]="listEntities.recordTotalCount" [(nzPageIndex)]="listEntities.currentPageIndex"
      (nzPageIndexChange)="getEntityListAsync(true)" [(nzPageSize)]="listEntities.pageSize" #nzTable #nzFixedHeader nzBordered
      #rowSelectionTable [nzData]="listEntities.entities">
      <thead nz-thead>
        <tr>
          <th style="text-align: center;">
            <span>班级名字</span>
          </th>
          <th style="text-align: center;">
            <span>学生姓名</span>
          </th>
          <th style="text-align: center;">
            <span>申请时间</span>
          </th>
          <th style="text-align: center;">
            <span>状态</span>
          </th>
          <th nz-th style="text-align: center;">操作</th>
        </tr>
      </thead>
      <tbody nz-tbody style="text-align: center;">
        <tr nz-tbody-tr *ngFor="let data of rowSelectionTable.data">
          <td nz-td>
            <span>{{data.className}}</span>
          </td>
          <td nz-td>
            <span>{{data.personName}}</span>
          </td>
          <td nz-td>
            <span>{{data.time}}</span>
          </td>
          <td nz-td>
            <span>{{data.applyType===1?"申请中":data.applyType===2?"已同意":"已拒绝"}}</span>
          </td>
          <td nz-td>
            <button (click)="studentpass(data.id,data.name.data.classInfoId,data.userId)" nz-button nzType="primary">同意</button>
            <button (click)="studentno(data.id,data.name.data.classInfoId,data.userId)" nz-button nzType="danger">拒绝</button>
          </td>
        </tr>
      </tbody>
    </nz-table>
    <nz-modal [(nzVisible)]="isVisiblety" nzTitle="确认" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOkty('success')">
      <p style="text-align: center;">确认同意{{namety}}？</p>
    </nz-modal>
    <nz-modal [(nzVisible)]="isVisiblej" nzTitle="确认" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOkj('success')">
      <p style="text-align: center;">确认拒绝{{nameno}}？</p>
    </nz-modal>
  </section>
</nz-spin>
